package com.woniuxy.carrental.service.impl;

import com.woniuxy.carrental.entity.City;
import com.woniuxy.carrental.mapper.CityMapper;
import com.woniuxy.carrental.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021-10-10 13:16
 */
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityMapper cityMapper;


    @Override
    public List<City> selectAllCity() {
        return cityMapper.selectAllCity();
    }

    @Override
    public List<City> selectAllCityByPid(int pid) {
        return cityMapper.selectAllCityByPid(pid);
    }
}
